<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
    py:extends="'master.kid'">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"
    py:replace="''"/>
<title>Action list - PyHMon Web Interface</title>
</head>
<body>
    <h2>Actions:</h2>
    <a href="${tg.url('/action')}">Add action</a>
    <table border = "1" width = "100%">
    <tr><th>Method</th><th>Group</th><th>Event type</th><th>Message</th>
    <th>Edit</th><th>Delete</th></tr>
    <tr py:for="a in allactions">
        <td><span py:replace="a.method">Method Goes Here</span></td>
        <td><span py:replace="a.groups.group_name">Group Goes Here</span></td>
        <td><span py:replace="a.event_type">Event type Goes Here</span></td>
        <td><span py:replace="a.msg">Message Goes Here</span></td>
        <td><form action="action" method="post">
            <input type="hidden" name="actionid" value="${a.action_id}"/>
            <input type="submit" name="submit" value="Go!"/>          
        </form>
	</td><td>
	<form action="del_action" method="post">
            <input type="hidden" name="actionid" value="${a.action_id}"/>
            <input type="submit" name="submit" value="Go!"/>          
        </form>
	</td>
    </tr>    
    </table>
</body>
</html>
